package controllers;


import java.awt.event.ActionEvent;
import system.View;


public class 
InsertTupleController
extends AbstractMenuController
{	public 
	InsertTupleController(View v){ 	super(v); }

	@Override
	public void actionPerformed(ActionEvent e) {
		String actionCommand = e.getActionCommand();

		if (actionCommand.equals("Insert Item"))
			item.actionPerformed(e);
		else if(actionCommand.equals("Set Lead Singer"))
			lead_singer.actionPerformed(e);
		else if(actionCommand.equals("Set Song"))
				has_song.actionPerformed(e);
		else if(actionCommand.equals("Insert Supplier"))
				supplier.actionPerformed(e);
		else if(actionCommand.equals("Insert Shipment"))
			shipment.actionPerformed(e);
		else if(actionCommand.equals("Add Item to Shipment"))
			ship_item.actionPerformed(e);
		else if(actionCommand.equals("Insert Store"))
				store.actionPerformed(e);
		else if(actionCommand.equals("Add Item to Store"))
				stored.actionPerformed(e);
		else if(actionCommand.equals("Insert Purchase"))
				purchase.actionPerformed(e);
		else if(actionCommand.equals("Set Item as Purchased"))
			purchased_item.actionPerformed(e);
		else if(actionCommand.equals("Insert Customer"))
			customer.actionPerformed(e);
		else if(actionCommand.equals("Insert Return"))
			return_transaction.actionPerformed(e);
		else if(actionCommand.equals("Add Item to Returns"))
			return_item.actionPerformed(e);
	}

	@Override
	public void show() {
		// TODO Auto-generated method stub
		
	}
}
